<%--
  Created by IntelliJ IDEA.
  User: 15646
  Date: 2024/6/17
  Time: 15:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>豪华酒店</title>
    <style>
        body, html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            font-family: Arial, sans-serif;
        }
        .header {
            background: #fff;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        .header h1 {
            margin: 0;
            font-size: 24px;
        }
        .header nav a {
            margin: 0 15px;
            text-decoration: none;
            color: #333;
        }
        .background {
            background-image: url("${pageContext.request.contextPath}/img/home.jpg");
            background-size: cover;
            background-position: center;
            height: calc(100% - 70px);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            text-align: center;
        }
        .content {
            background: rgba(0, 0, 0, 0.5);
            padding: 20px;
        }
        .content h2 {
            font-size: 48px;
            margin: 0;
        }
        .content p {
            font-size: 18px;
            margin: 10px 0 20px;
        }
        .form-container {
            background: rgba(255, 255, 255, 0.9);
            padding: 20px;
            border-radius: 8px;
            max-width: 300px;
            width: 100%;
        }
        .form-container h3 {
            margin: 0 0 20px;
            font-size: 20px;
            color: #333;
        }
        .form-container input {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
        .form-container button {
            width: 100%;
            padding: 10px;
            background-color: #ff9900;
            border: none;
            color: white;
            font-size: 16px;
            border-radius: 4px;
            cursor: pointer;
        }
    </style>
</head>
<body>
<div class="header">
    <h1>Sona.</h1>
    <nav>
        <a href="index.jsp">首页</a>
        <a href="roomviewa.jsp">在线订房</a>
        <a href="#">关于我们</a>
        <a href="#">联系方式</a>
        <a href="login.jsp">系统管理</a>
    </nav>
</div>
<div class="background">
    <div class="content">
        <h2>豪华酒店</h2>
        <p>xxx地酒店</p>
        <div class="form-container">
            <h3>酒店信息管理</h3>
            <form action="${pageContext.request.contextPath}/LoginServlet" method="post">
                <input type="text" name="username" placeholder="登录名称">
                <input type="text" name="password" placeholder="密码">
                <button type="submit">登录</button>
            </form>
        </div>
    </div>
</div>
</body>
</html>
